package com.dqj.designer.abstarctfactory;
public class Client {

	static int sum = 0;

	public static int get(int n) {
		int m=0;
		if(n>3){
			m=get(n-1)+get(n-2)+get(n-3);
			
		}else if(n==1){
			m=1;
		}else if(n==2){
			m=2;
		}else if(n==3){
			m=4;
		}
		sum+=m;
		return m;
	}

	public static void main(String[] args) {
		
		  AbstractFactory factory=AbstractFactory.GetFactory("WinFactory");
		  IButton button=factory.CreateButton(); 
		  button.Show();
		
	}
}
